# name : ds2csv macro with filenmae
# key : ds2csv.filename
# contributor: Shuguang Sun
# --
filename ${1:frefnm} \"&${2:$$(yas-choose-value '("__wksppath__" "__wksppath" "_wksppath_" "__prjpath__" "__prjpath"))}./data/${3:$$(yas-choose-value '("interim" "processed" "csv"|))}/$4.csv\" encoding="utf8";
* csvfref, openmode=REPLACE|APPEND, formats=Y|N, labels=Y|N, where=where-expression;
%ds2csv(data=${4:dtin}, runmode=b, csvfref=$1, ${5:$$(yas-choose-value '("N" "Y"))}${99:, var=, where=});
filename $1 clear;